import {
    request
} from "./request";
import qs from "qs";


//  获取轮播集合
export function backGetBanner(obj) {
    return request({
        url: "scSystem/backGetBanner",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据类型获取绑定信息
export function getBandingByType(obj) {
    return request({
        url: "scSystem/getBandingByType",
        method: "post",
        data: qs.stringify(obj)
    });
}
//根据类型获取绑定信息
export function backaddBanner(obj) {
    return request({
        url: "scSystem/addBanner",
        headers: {
            'content-type': 'multipart/form-data'
        },
        method: "post",
        data: obj
    });
}
export function updateBanner(obj) {
    return request({
        url: "scSystem/updateBanner",
        headers: {
            'content-type': 'multipart/form-data'
        },
        method: "post",
        data: obj
    });
}
//
export function updateStatus(obj) {
    return request({
        url: "scSystem/updateStatus",
        method: "post",
        data: qs.stringify(obj)
    });
}
